import 'package:flutter/material.dart';
import 'package:my_app/003--项目实战-项目搭建/wechat_demo03/pages/const.dart';

class SearchCell extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 44,
      color: WeChatThemeColor,
      padding: EdgeInsets.all(5),
      child: Stack(
        alignment: Alignment.center,
        children: <Widget>[
          Container(
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.circular(6.0),
            ),
          ), //白色底
          Row(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Image(
                image: AssetImage('images/放大镜b.png'),
                width: 15,
                color: Colors.grey,
              ),
              Text(
                '  搜索',
                style: TextStyle(fontSize: 15, color: Colors.grey),
              ),
            ],
          ) //中间文字和放大镜
        ],
      ),
    );
  }
}
